package cn.jofei.common.netty.protocol;

import io.netty.handler.codec.LengthFieldBasedFrameDecoder;

/**
 * 基于长度字段的帧解码器
 *
 * @author Jofei Bao
 * @version learn-demo v1.0.
 * @date 2022年10月21日 15:26
 */
public class ProtocolFrameDecoder extends LengthFieldBasedFrameDecoder {
    public ProtocolFrameDecoder() {
        super(1024 * 1024, 12, 4, 0, 0);
    }

    public ProtocolFrameDecoder(int maxFrameLength, int lengthFieldOffset, int lengthFieldLength, int lengthAdjustment, int initialBytesToStrip) {
        super(maxFrameLength, lengthFieldOffset, lengthFieldLength, lengthAdjustment, initialBytesToStrip);
    }
}
